import React from 'react'
import AppRouter from "@/page/AppRouter.tsx";
import {useMessageApiStore} from "@/util/Store.tsx";
import {message} from "antd";

const App: React.FC = () => {
    const [messageApi, contextHolder] = message.useMessage()
    useMessageApiStore((state) => state.setMessageApi)(messageApi)
    return (
        <>
            <AppRouter/>
            {contextHolder}
        </>
    )
}

export default App
